import request from '@/request/index.js'

export function phoneLogin(data) {
	return request('/shopping-user/user/Login', 'get', data)
}

export function findSelectClass(data) {
	return request('/shopping-paging/class/getTClass', 'get', data)
}
export function codeMessage(data){
	 return request('/shopping-user/user/codeMessage', 'get', data)
}
export function findSelectClassTwo(data) {
	return request('/shopping-paging/class/getTClassTwo', 'get', data)
}
export function UUIDCode(data) {
	return request('shopping-user/user/getBase64Code', 'POST', data)
}

export function UUIDLogin(data) {
	return request('shopping-user/user/UUIDLogin', 'Get', data)
}

export function reg(data) {
	return request('shopping-user/user/reg', 'POST', data)
}

export function updatePassword(data) {
	return request('shopping-user/user/updatePassword', 'Get', data)
}

export function sendEmail(data) {
	return request('shopping-user/user/sendEmail', 'Get', data)
}

export function emailLogin(data) {
	return request('shopping-user/user/emailLogin', 'Get', data)
}

export function a(data) {
	return request('shpping-pay/alipay/pay', 'Get', data)
}

//查找用户信息
export function getuser(userId) {
	return request('shopping-user/user/getuser', 'get', userId)
}

//修改密码
export function setPassword(data) {
	return request('shopping-user/user/setPassword', 'get', data)
}

//修改用户信息
export function setUser(data) {
	return request('shopping-user/user/setuser', 'Get', data)
}
export function updateEditlnfoUser(data) {
	return request('shopping-user/user/updateEditlnfoUser', 'Get', data)
}
export function getRecord(data) {
	return request('shopping-chatmessage/TChatmessage/getRecord', 'Get', data)
}
export function svaeMessage(data) {
	return request('shopping-user/user/svaeMessage', 'POST', data)
}

export function TWallet(userId){
	return request('shopping-user/TWallet/getTWallet','get',userId)
}
//获取系统消息
export function getTMessage(userid){
	return request('shopping-user/TMessage/getTMessage','get',userid)
}
